<?php
/**
 * exceptions classes for dj kit
 */

class DjHttpException extends Exception {

    public function __construct($msg="",$code=500) {
        $this->message=$msg;
        $this->code=$code;
    }
}

class DjHttp404 extends DjHttpException {}
class DjHttp500 extends DjHttpException {}